package com.hwua.tonyshop.criteria;
	
import com.slkj.autocode.entity.Page;
import com.hwua.tonyshop.entity.pojo.ImgerInfo;

/**
* 
* @author sunny Yang [杨松彦]
* @QQ 550358261
* @date 2018-04-16
* @discribe
* >、<、>=、<=、=、!=、like、
* is null、is not null、in、not in
*
*/
public class ImgerInfoCriteria extends ImgerInfo{
	/**
	* 版本号
	*/
	private static final long serialVersionUID = 1L;
	private String groupBy123;//分组
	private String having123;//分组过滤
	private String orderBy123;//排序
	private Page page123;
	private String condition123="";//纯条件
	private String selectCondition123;//查询条件
	private String sql123;
	private ImgerInfo imgerInfo;
	private String feid123;//字段用于统计查询时设置

	public ImgerInfoCriteria() {

	}
	public String getFeid123() {
		return feid123;
	}
	public void setFeid123(String feid) {
		this.feid123 = feid;
	}
	public ImgerInfo getImgerInfo() {
		return imgerInfo;
	}
	public void setImgerInfo(ImgerInfo imgerInfo) {
		this.imgerInfo = imgerInfo;
		initImgerInfo(imgerInfo);
	}

	public String getSql123() {
		return sql123;
	}

	public void setSql123(String sql123) {
		this.sql123 = sql123;
	}

	public String getSelectCondition123() {
		if(selectCondition123==null){
			if(condition123.trim().length()>0){
				condition123 = "where "+condition123;
			}
			selectCondition123 = condition123;
			if(groupBy123!=null){
				selectCondition123 += " group by "+groupBy123+" ";
			}
			if(having123!=null){
				selectCondition123 += "having "+having123+" ";
			}
			if(orderBy123!=null){
				selectCondition123 += "order by "+orderBy123+" ";
			}
			if(page123!=null){
				selectCondition123 += "limit "+((page123.getPageNumber()-1)*page123.getPageSize())+","+page123.getPageSize();
			}
			selectCondition123 = selectCondition123.trim();
		}
		System.out.println("查询条件："+selectCondition123);
		return selectCondition123;
	}
	public void setSelectCondition123(String selectCondition) {
		this.selectCondition123 = selectCondition;
	}
	public String getCondition123() {
		System.out.println("纯条件："+condition123);
		return condition123;
	}
	public void setCondition123(String condition) {
		this.condition123 = condition;
	}
	public ImgerInfoCriteria page(Page value){
		page123 = value;
		return this;
	}
	public ImgerInfoCriteria groupBy(String value){
		groupBy123 = value;
		return this;
	}
	public ImgerInfoCriteria having(String value){
		having123 = value;
		return this;
	}
	public ImgerInfoCriteria orderBy(String value){
		orderBy123 = value;
		return this;
	}

	/*public String getSqlAll(String tableName){
		String sql = "";
		if("where ".equals(condition123)){
			sql = "select * from `"+tableName+"` ";
		}else{
			sql = "select * from `"+tableName+"` "+condition123+" ";
		}
		if(groupBy123!=null){
			sql += sql+" group by "+groupBy123+" ";
		}
		if(having123!=null){
			sql += "having "+having123+" ";
		}
		if(orderBy123!=null){
			sql += "order by "+orderBy123+" ";
		}
		if(page123!=null){
			sql += "limit "+((page123.getPageNumber()-1)*page123.getPageSize())+","+page123.getPageSize();
		}
		sql = sql.trim();
		return sql; 
	}*/

/************以下为纯条件的拼接*******************/

	public ImgerInfoCriteria andIdEquals(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "and `id`="+id+" ";
			}else{
				condition123 += "`id`="+id+" ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orIdEquals(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "or `id`="+id+" ";
			}else{
				condition123 += "`id`="+id+" ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andIdNotEquals(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "and `id`!="+id+" ";
			}else{
				condition123 += "`id`!="+id+" ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orIdNotEquals(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "or `id`!="+id+" ";
			}else{
				condition123 += "`id`!="+id+" ";
			}
		}
		return this;
	}
	/**
	 * 大于
	 * @param 
	 * @return
	 */
	public ImgerInfoCriteria andIdGreaterThan(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "and `id`>"+id+" ";
			}else{
				condition123 += "`id`>"+id+" ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orIdGreaterThan(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "or `id`>"+id+" ";
			}else{
				condition123 += "`id`>"+id+" ";
			}
		}
		return this;
	}
	
	
	public ImgerInfoCriteria andIdLessThan(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "and `id`<"+id+" ";
			}else{
				condition123 += "`id`<"+id+" ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orIdLessThan(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "or `id`<"+id+" ";
			}else{
				condition123 += "`id`<"+id+" ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andIdGreadterThanAndEquals(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "and `id`>="+id+" ";
			}else{
				condition123 += "`id`>="+id+" ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orIdGreadterThanAndEquals(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "or `id`>="+id+" ";
			}else{
				condition123 += "`id`>="+id+" ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andIdLessThanAndEquals(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "and `id`<="+id+" ";
			}else{
				condition123 += "`id`<="+id+" ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orIdLessThanAndEquals(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "or `id`<="+id+" ";
			}else{
				condition123 += "`id`<="+id+" ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andIdLike(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "and `id` like "+id+" ";
			}else{
				condition123 += "`id` like "+id+" ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orIdLike(Integer id){
		if(id!=null){
			if(condition123.length()>0){
				condition123 += "or `id` like "+id+" ";
			}else{
				condition123 += "`id` like "+id+" ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andIdIsNull(){
			if(condition123.length()>0){
				condition123 += "and `id` is null";
			}else{
				condition123 += "`id` is null";
			}
		return this;
	}
	public ImgerInfoCriteria orIdIsNull(){
		if(condition123.length()>0){
			condition123 += "or `id` is null";
		}else{
			condition123 += "`id` is null";
		}
		return this;
	}
	public ImgerInfoCriteria andIdIsNotNull(){
		if(condition123.length()>0){
			condition123 += "and `id` is not null";
		}else{
			condition123 += "`id` is not null";
		}
		return this;
	}
	public ImgerInfoCriteria orIdIsNotNull(){
		if(condition123.length()>0){
			condition123 += "or `id` is not null";
		}else{
			condition123 += "`id` is not null";
		}
		return this;
	}
	public ImgerInfoCriteria andIdIn(String value){
		if(value!=null && value.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `id` in("+value+") ";
			}else{
				condition123 += "`id` in("+value+") ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orIdIn(String value){
		if(value!=null && value.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `id` in("+value+") ";
			}else{
				condition123 += "`id` in("+value+") ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria andIdNotIn(String value){
		if(value!=null && value.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `id` not in("+value+") ";
			}else{
				condition123 += "`id` not in("+value+") ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orIdNotIn(String value){
		if(value!=null && value.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `id` not in("+value+") ";
			}else{
				condition123 += "`id` not in("+value+") ";
			}
		}
		return this;
	}

	public ImgerInfoCriteria andNameEquals(String name){
		if(name!=null&&name.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `name`='"+name+"' ";
			}else{
				condition123 += "`name`='"+name+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orNameEquals(String name){
		if(name!=null&&name.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `name`='"+name+"' ";
			}else{
				condition123 += "`name`='"+name+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andNameNotEquals(String name){
		if(name!=null&&name.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `name`!='"+name+"' ";
			}else{
				condition123 += "`name`!='"+name+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orNameNotEquals(String name){
		if(name!=null&&name.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `name`!='"+name+"' ";
			}else{
				condition123 += "`name`!='"+name+"' ";
			}
		}
		return this;
	}
	/**
	 * 大于
	 * @param 
	 * @return
	 */
	public ImgerInfoCriteria andNameGreaterThan(String name){
		if(name!=null&&name.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `name`>'"+name+"' ";
			}else{
				condition123 += "`name`>'"+name+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orNameGreaterThan(String name){
		if(name!=null&&name.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `name`>'"+name+"' ";
			}else{
				condition123 += "`name`>'"+name+"' ";
			}
		}
		return this;
	}
	
	
	public ImgerInfoCriteria andNameLessThan(String name){
		if(name!=null&&name.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `name`<'"+name+"' ";
			}else{
				condition123 += "`name`<'"+name+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orNameLessThan(String name){
		if(name!=null&&name.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `name`<'"+name+"' ";
			}else{
				condition123 += "`name`<'"+name+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andNameGreadterThanAndEquals(String name){
		if(name!=null&&name.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `name`>='"+name+"' ";
			}else{
				condition123 += "`name`>='"+name+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orNameGreadterThanAndEquals(String name){
		if(name!=null&&name.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `name`>='"+name+"' ";
			}else{
				condition123 += "`name`>='"+name+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andNameLessThanAndEquals(String name){
		if(name!=null&&name.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `name`<='"+name+"' ";
			}else{
				condition123 += "`name`<='"+name+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orNameLessThanAndEquals(String name){
		if(name!=null&&name.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `name`<='"+name+"' ";
			}else{
				condition123 += "`name`<='"+name+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andNameLike(String name){
		if(name!=null&&name.trim().length()>0&&!("%".equals(name.trim()))&&!("%%".equals(name.trim()))){
			if(condition123.length()>0){
				condition123 += "and `name` like '"+name+"' ";
			}else{
				condition123 += "`name` like '"+name+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orNameLike(String name){
		if(name!=null&&name.trim().length()>0&&!("%".equals(name.trim()))&&!("%%".equals(name.trim()))){
			if(condition123.length()>0){
				condition123 += "or `name` like '"+name+"' ";
			}else{
				condition123 += "`name` like '"+name+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andNameIsNull(){
			if(condition123.length()>0){
				condition123 += "and `name` is null";
			}else{
				condition123 += "`name` is null";
			}
		return this;
	}
	public ImgerInfoCriteria orNameIsNull(){
		if(condition123.length()>0){
			condition123 += "or `name` is null";
		}else{
			condition123 += "`name` is null";
		}
		return this;
	}
	public ImgerInfoCriteria andNameIsNotNull(){
		if(condition123.length()>0){
			condition123 += "and `name` is not null";
		}else{
			condition123 += "`name` is not null";
		}
		return this;
	}
	public ImgerInfoCriteria orNameIsNotNull(){
		if(condition123.length()>0){
			condition123 += "or `name` is not null";
		}else{
			condition123 += "`name` is not null";
		}
		return this;
	}
	
	public ImgerInfoCriteria andNameIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "and `name` in("+value+") ";
			}else{
				condition123 += "`name` in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orNameIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "or `name` in("+value+") ";
			}else{
				condition123 += "`name` in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andNameNotIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "and `name` not in("+value+") ";
			}else{
				condition123 += "`name` not in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orNameNotIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "or `name` not in("+value+") ";
			}else{
				condition123 += "`name` not in("+value+") ";
			}
		}
		return this;
	}

	public ImgerInfoCriteria andLinkEquals(String link){
		if(link!=null&&link.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `link`='"+link+"' ";
			}else{
				condition123 += "`link`='"+link+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orLinkEquals(String link){
		if(link!=null&&link.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `link`='"+link+"' ";
			}else{
				condition123 += "`link`='"+link+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andLinkNotEquals(String link){
		if(link!=null&&link.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `link`!='"+link+"' ";
			}else{
				condition123 += "`link`!='"+link+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orLinkNotEquals(String link){
		if(link!=null&&link.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `link`!='"+link+"' ";
			}else{
				condition123 += "`link`!='"+link+"' ";
			}
		}
		return this;
	}
	/**
	 * 大于
	 * @param 
	 * @return
	 */
	public ImgerInfoCriteria andLinkGreaterThan(String link){
		if(link!=null&&link.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `link`>'"+link+"' ";
			}else{
				condition123 += "`link`>'"+link+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orLinkGreaterThan(String link){
		if(link!=null&&link.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `link`>'"+link+"' ";
			}else{
				condition123 += "`link`>'"+link+"' ";
			}
		}
		return this;
	}
	
	
	public ImgerInfoCriteria andLinkLessThan(String link){
		if(link!=null&&link.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `link`<'"+link+"' ";
			}else{
				condition123 += "`link`<'"+link+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orLinkLessThan(String link){
		if(link!=null&&link.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `link`<'"+link+"' ";
			}else{
				condition123 += "`link`<'"+link+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andLinkGreadterThanAndEquals(String link){
		if(link!=null&&link.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `link`>='"+link+"' ";
			}else{
				condition123 += "`link`>='"+link+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orLinkGreadterThanAndEquals(String link){
		if(link!=null&&link.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `link`>='"+link+"' ";
			}else{
				condition123 += "`link`>='"+link+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andLinkLessThanAndEquals(String link){
		if(link!=null&&link.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `link`<='"+link+"' ";
			}else{
				condition123 += "`link`<='"+link+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orLinkLessThanAndEquals(String link){
		if(link!=null&&link.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `link`<='"+link+"' ";
			}else{
				condition123 += "`link`<='"+link+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andLinkLike(String link){
		if(link!=null&&link.trim().length()>0&&!("%".equals(link.trim()))&&!("%%".equals(link.trim()))){
			if(condition123.length()>0){
				condition123 += "and `link` like '"+link+"' ";
			}else{
				condition123 += "`link` like '"+link+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orLinkLike(String link){
		if(link!=null&&link.trim().length()>0&&!("%".equals(link.trim()))&&!("%%".equals(link.trim()))){
			if(condition123.length()>0){
				condition123 += "or `link` like '"+link+"' ";
			}else{
				condition123 += "`link` like '"+link+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andLinkIsNull(){
			if(condition123.length()>0){
				condition123 += "and `link` is null";
			}else{
				condition123 += "`link` is null";
			}
		return this;
	}
	public ImgerInfoCriteria orLinkIsNull(){
		if(condition123.length()>0){
			condition123 += "or `link` is null";
		}else{
			condition123 += "`link` is null";
		}
		return this;
	}
	public ImgerInfoCriteria andLinkIsNotNull(){
		if(condition123.length()>0){
			condition123 += "and `link` is not null";
		}else{
			condition123 += "`link` is not null";
		}
		return this;
	}
	public ImgerInfoCriteria orLinkIsNotNull(){
		if(condition123.length()>0){
			condition123 += "or `link` is not null";
		}else{
			condition123 += "`link` is not null";
		}
		return this;
	}
	
	public ImgerInfoCriteria andLinkIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "and `link` in("+value+") ";
			}else{
				condition123 += "`link` in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orLinkIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "or `link` in("+value+") ";
			}else{
				condition123 += "`link` in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andLinkNotIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "and `link` not in("+value+") ";
			}else{
				condition123 += "`link` not in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orLinkNotIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "or `link` not in("+value+") ";
			}else{
				condition123 += "`link` not in("+value+") ";
			}
		}
		return this;
	}

	public ImgerInfoCriteria andImgSrcEquals(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `img_src`='"+imgSrc+"' ";
			}else{
				condition123 += "`img_src`='"+imgSrc+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orImgSrcEquals(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `img_src`='"+imgSrc+"' ";
			}else{
				condition123 += "`img_src`='"+imgSrc+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andImgSrcNotEquals(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `img_src`!='"+imgSrc+"' ";
			}else{
				condition123 += "`img_src`!='"+imgSrc+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orImgSrcNotEquals(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `img_src`!='"+imgSrc+"' ";
			}else{
				condition123 += "`img_src`!='"+imgSrc+"' ";
			}
		}
		return this;
	}
	/**
	 * 大于
	 * @param 
	 * @return
	 */
	public ImgerInfoCriteria andImgSrcGreaterThan(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `img_src`>'"+imgSrc+"' ";
			}else{
				condition123 += "`img_src`>'"+imgSrc+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orImgSrcGreaterThan(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `img_src`>'"+imgSrc+"' ";
			}else{
				condition123 += "`img_src`>'"+imgSrc+"' ";
			}
		}
		return this;
	}
	
	
	public ImgerInfoCriteria andImgSrcLessThan(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `img_src`<'"+imgSrc+"' ";
			}else{
				condition123 += "`img_src`<'"+imgSrc+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orImgSrcLessThan(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `img_src`<'"+imgSrc+"' ";
			}else{
				condition123 += "`img_src`<'"+imgSrc+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andImgSrcGreadterThanAndEquals(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `img_src`>='"+imgSrc+"' ";
			}else{
				condition123 += "`img_src`>='"+imgSrc+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orImgSrcGreadterThanAndEquals(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `img_src`>='"+imgSrc+"' ";
			}else{
				condition123 += "`img_src`>='"+imgSrc+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andImgSrcLessThanAndEquals(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `img_src`<='"+imgSrc+"' ";
			}else{
				condition123 += "`img_src`<='"+imgSrc+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orImgSrcLessThanAndEquals(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `img_src`<='"+imgSrc+"' ";
			}else{
				condition123 += "`img_src`<='"+imgSrc+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andImgSrcLike(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0&&!("%".equals(imgSrc.trim()))&&!("%%".equals(imgSrc.trim()))){
			if(condition123.length()>0){
				condition123 += "and `img_src` like '"+imgSrc+"' ";
			}else{
				condition123 += "`img_src` like '"+imgSrc+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orImgSrcLike(String imgSrc){
		if(imgSrc!=null&&imgSrc.trim().length()>0&&!("%".equals(imgSrc.trim()))&&!("%%".equals(imgSrc.trim()))){
			if(condition123.length()>0){
				condition123 += "or `img_src` like '"+imgSrc+"' ";
			}else{
				condition123 += "`img_src` like '"+imgSrc+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andImgSrcIsNull(){
			if(condition123.length()>0){
				condition123 += "and `img_src` is null";
			}else{
				condition123 += "`img_src` is null";
			}
		return this;
	}
	public ImgerInfoCriteria orImgSrcIsNull(){
		if(condition123.length()>0){
			condition123 += "or `img_src` is null";
		}else{
			condition123 += "`img_src` is null";
		}
		return this;
	}
	public ImgerInfoCriteria andImgSrcIsNotNull(){
		if(condition123.length()>0){
			condition123 += "and `img_src` is not null";
		}else{
			condition123 += "`img_src` is not null";
		}
		return this;
	}
	public ImgerInfoCriteria orImgSrcIsNotNull(){
		if(condition123.length()>0){
			condition123 += "or `img_src` is not null";
		}else{
			condition123 += "`img_src` is not null";
		}
		return this;
	}
	
	public ImgerInfoCriteria andImgSrcIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "and `img_src` in("+value+") ";
			}else{
				condition123 += "`img_src` in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orImgSrcIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "or `img_src` in("+value+") ";
			}else{
				condition123 += "`img_src` in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andImgSrcNotIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "and `img_src` not in("+value+") ";
			}else{
				condition123 += "`img_src` not in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orImgSrcNotIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "or `img_src` not in("+value+") ";
			}else{
				condition123 += "`img_src` not in("+value+") ";
			}
		}
		return this;
	}

	public ImgerInfoCriteria andUseTypeEquals(String useType){
		if(useType!=null&&useType.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `use_type`='"+useType+"' ";
			}else{
				condition123 += "`use_type`='"+useType+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orUseTypeEquals(String useType){
		if(useType!=null&&useType.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `use_type`='"+useType+"' ";
			}else{
				condition123 += "`use_type`='"+useType+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andUseTypeNotEquals(String useType){
		if(useType!=null&&useType.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `use_type`!='"+useType+"' ";
			}else{
				condition123 += "`use_type`!='"+useType+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseTypeNotEquals(String useType){
		if(useType!=null&&useType.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `use_type`!='"+useType+"' ";
			}else{
				condition123 += "`use_type`!='"+useType+"' ";
			}
		}
		return this;
	}
	/**
	 * 大于
	 * @param 
	 * @return
	 */
	public ImgerInfoCriteria andUseTypeGreaterThan(String useType){
		if(useType!=null&&useType.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `use_type`>'"+useType+"' ";
			}else{
				condition123 += "`use_type`>'"+useType+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseTypeGreaterThan(String useType){
		if(useType!=null&&useType.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `use_type`>'"+useType+"' ";
			}else{
				condition123 += "`use_type`>'"+useType+"' ";
			}
		}
		return this;
	}
	
	
	public ImgerInfoCriteria andUseTypeLessThan(String useType){
		if(useType!=null&&useType.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `use_type`<'"+useType+"' ";
			}else{
				condition123 += "`use_type`<'"+useType+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseTypeLessThan(String useType){
		if(useType!=null&&useType.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `use_type`<'"+useType+"' ";
			}else{
				condition123 += "`use_type`<'"+useType+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andUseTypeGreadterThanAndEquals(String useType){
		if(useType!=null&&useType.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `use_type`>='"+useType+"' ";
			}else{
				condition123 += "`use_type`>='"+useType+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseTypeGreadterThanAndEquals(String useType){
		if(useType!=null&&useType.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `use_type`>='"+useType+"' ";
			}else{
				condition123 += "`use_type`>='"+useType+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andUseTypeLessThanAndEquals(String useType){
		if(useType!=null&&useType.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `use_type`<='"+useType+"' ";
			}else{
				condition123 += "`use_type`<='"+useType+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseTypeLessThanAndEquals(String useType){
		if(useType!=null&&useType.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `use_type`<='"+useType+"' ";
			}else{
				condition123 += "`use_type`<='"+useType+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andUseTypeLike(String useType){
		if(useType!=null&&useType.trim().length()>0&&!("%".equals(useType.trim()))&&!("%%".equals(useType.trim()))){
			if(condition123.length()>0){
				condition123 += "and `use_type` like '"+useType+"' ";
			}else{
				condition123 += "`use_type` like '"+useType+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseTypeLike(String useType){
		if(useType!=null&&useType.trim().length()>0&&!("%".equals(useType.trim()))&&!("%%".equals(useType.trim()))){
			if(condition123.length()>0){
				condition123 += "or `use_type` like '"+useType+"' ";
			}else{
				condition123 += "`use_type` like '"+useType+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andUseTypeIsNull(){
			if(condition123.length()>0){
				condition123 += "and `use_type` is null";
			}else{
				condition123 += "`use_type` is null";
			}
		return this;
	}
	public ImgerInfoCriteria orUseTypeIsNull(){
		if(condition123.length()>0){
			condition123 += "or `use_type` is null";
		}else{
			condition123 += "`use_type` is null";
		}
		return this;
	}
	public ImgerInfoCriteria andUseTypeIsNotNull(){
		if(condition123.length()>0){
			condition123 += "and `use_type` is not null";
		}else{
			condition123 += "`use_type` is not null";
		}
		return this;
	}
	public ImgerInfoCriteria orUseTypeIsNotNull(){
		if(condition123.length()>0){
			condition123 += "or `use_type` is not null";
		}else{
			condition123 += "`use_type` is not null";
		}
		return this;
	}
	
	public ImgerInfoCriteria andUseTypeIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "and `use_type` in("+value+") ";
			}else{
				condition123 += "`use_type` in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orUseTypeIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "or `use_type` in("+value+") ";
			}else{
				condition123 += "`use_type` in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andUseTypeNotIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "and `use_type` not in("+value+") ";
			}else{
				condition123 += "`use_type` not in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orUseTypeNotIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "or `use_type` not in("+value+") ";
			}else{
				condition123 += "`use_type` not in("+value+") ";
			}
		}
		return this;
	}

	public ImgerInfoCriteria andUseIdEquals(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "and `use_id`="+useId+" ";
			}else{
				condition123 += "`use_id`="+useId+" ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orUseIdEquals(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "or `use_id`="+useId+" ";
			}else{
				condition123 += "`use_id`="+useId+" ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andUseIdNotEquals(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "and `use_id`!="+useId+" ";
			}else{
				condition123 += "`use_id`!="+useId+" ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseIdNotEquals(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "or `use_id`!="+useId+" ";
			}else{
				condition123 += "`use_id`!="+useId+" ";
			}
		}
		return this;
	}
	/**
	 * 大于
	 * @param 
	 * @return
	 */
	public ImgerInfoCriteria andUseIdGreaterThan(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "and `use_id`>"+useId+" ";
			}else{
				condition123 += "`use_id`>"+useId+" ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseIdGreaterThan(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "or `use_id`>"+useId+" ";
			}else{
				condition123 += "`use_id`>"+useId+" ";
			}
		}
		return this;
	}
	
	
	public ImgerInfoCriteria andUseIdLessThan(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "and `use_id`<"+useId+" ";
			}else{
				condition123 += "`use_id`<"+useId+" ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseIdLessThan(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "or `use_id`<"+useId+" ";
			}else{
				condition123 += "`use_id`<"+useId+" ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andUseIdGreadterThanAndEquals(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "and `use_id`>="+useId+" ";
			}else{
				condition123 += "`use_id`>="+useId+" ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseIdGreadterThanAndEquals(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "or `use_id`>="+useId+" ";
			}else{
				condition123 += "`use_id`>="+useId+" ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andUseIdLessThanAndEquals(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "and `use_id`<="+useId+" ";
			}else{
				condition123 += "`use_id`<="+useId+" ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseIdLessThanAndEquals(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "or `use_id`<="+useId+" ";
			}else{
				condition123 += "`use_id`<="+useId+" ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andUseIdLike(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "and `use_id` like "+useId+" ";
			}else{
				condition123 += "`use_id` like "+useId+" ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseIdLike(Integer useId){
		if(useId!=null){
			if(condition123.length()>0){
				condition123 += "or `use_id` like "+useId+" ";
			}else{
				condition123 += "`use_id` like "+useId+" ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andUseIdIsNull(){
			if(condition123.length()>0){
				condition123 += "and `use_id` is null";
			}else{
				condition123 += "`use_id` is null";
			}
		return this;
	}
	public ImgerInfoCriteria orUseIdIsNull(){
		if(condition123.length()>0){
			condition123 += "or `use_id` is null";
		}else{
			condition123 += "`use_id` is null";
		}
		return this;
	}
	public ImgerInfoCriteria andUseIdIsNotNull(){
		if(condition123.length()>0){
			condition123 += "and `use_id` is not null";
		}else{
			condition123 += "`use_id` is not null";
		}
		return this;
	}
	public ImgerInfoCriteria orUseIdIsNotNull(){
		if(condition123.length()>0){
			condition123 += "or `use_id` is not null";
		}else{
			condition123 += "`use_id` is not null";
		}
		return this;
	}
	public ImgerInfoCriteria andUseIdIn(String value){
		if(value!=null && value.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `use_id` in("+value+") ";
			}else{
				condition123 += "`use_id` in("+value+") ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseIdIn(String value){
		if(value!=null && value.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `use_id` in("+value+") ";
			}else{
				condition123 += "`use_id` in("+value+") ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria andUseIdNotIn(String value){
		if(value!=null && value.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `use_id` not in("+value+") ";
			}else{
				condition123 += "`use_id` not in("+value+") ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orUseIdNotIn(String value){
		if(value!=null && value.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `use_id` not in("+value+") ";
			}else{
				condition123 += "`use_id` not in("+value+") ";
			}
		}
		return this;
	}

	public ImgerInfoCriteria andCreateDateEquals(String createDate){
		if(createDate!=null&&createDate.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `create_date`='"+createDate+"' ";
			}else{
				condition123 += "`create_date`='"+createDate+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orCreateDateEquals(String createDate){
		if(createDate!=null&&createDate.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `create_date`='"+createDate+"' ";
			}else{
				condition123 += "`create_date`='"+createDate+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andCreateDateNotEquals(String createDate){
		if(createDate!=null&&createDate.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `create_date`!='"+createDate+"' ";
			}else{
				condition123 += "`create_date`!='"+createDate+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orCreateDateNotEquals(String createDate){
		if(createDate!=null&&createDate.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `create_date`!='"+createDate+"' ";
			}else{
				condition123 += "`create_date`!='"+createDate+"' ";
			}
		}
		return this;
	}
	/**
	 * 大于
	 * @param 
	 * @return
	 */
	public ImgerInfoCriteria andCreateDateGreaterThan(String createDate){
		if(createDate!=null&&createDate.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `create_date`>'"+createDate+"' ";
			}else{
				condition123 += "`create_date`>'"+createDate+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orCreateDateGreaterThan(String createDate){
		if(createDate!=null&&createDate.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `create_date`>'"+createDate+"' ";
			}else{
				condition123 += "`create_date`>'"+createDate+"' ";
			}
		}
		return this;
	}
	
	
	public ImgerInfoCriteria andCreateDateLessThan(String createDate){
		if(createDate!=null&&createDate.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `create_date`<'"+createDate+"' ";
			}else{
				condition123 += "`create_date`<'"+createDate+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orCreateDateLessThan(String createDate){
		if(createDate!=null&&createDate.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `create_date`<'"+createDate+"' ";
			}else{
				condition123 += "`create_date`<'"+createDate+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andCreateDateGreadterThanAndEquals(String createDate){
		if(createDate!=null&&createDate.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `create_date`>='"+createDate+"' ";
			}else{
				condition123 += "`create_date`>='"+createDate+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orCreateDateGreadterThanAndEquals(String createDate){
		if(createDate!=null&&createDate.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `create_date`>='"+createDate+"' ";
			}else{
				condition123 += "`create_date`>='"+createDate+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andCreateDateLessThanAndEquals(String createDate){
		if(createDate!=null&&createDate.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `create_date`<='"+createDate+"' ";
			}else{
				condition123 += "`create_date`<='"+createDate+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orCreateDateLessThanAndEquals(String createDate){
		if(createDate!=null&&createDate.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `create_date`<='"+createDate+"' ";
			}else{
				condition123 += "`create_date`<='"+createDate+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andCreateDateLike(String createDate){
		if(createDate!=null&&createDate.trim().length()>0&&!("%".equals(createDate.trim()))&&!("%%".equals(createDate.trim()))){
			if(condition123.length()>0){
				condition123 += "and `create_date` like '"+createDate+"' ";
			}else{
				condition123 += "`create_date` like '"+createDate+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orCreateDateLike(String createDate){
		if(createDate!=null&&createDate.trim().length()>0&&!("%".equals(createDate.trim()))&&!("%%".equals(createDate.trim()))){
			if(condition123.length()>0){
				condition123 += "or `create_date` like '"+createDate+"' ";
			}else{
				condition123 += "`create_date` like '"+createDate+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andCreateDateIsNull(){
			if(condition123.length()>0){
				condition123 += "and `create_date` is null";
			}else{
				condition123 += "`create_date` is null";
			}
		return this;
	}
	public ImgerInfoCriteria orCreateDateIsNull(){
		if(condition123.length()>0){
			condition123 += "or `create_date` is null";
		}else{
			condition123 += "`create_date` is null";
		}
		return this;
	}
	public ImgerInfoCriteria andCreateDateIsNotNull(){
		if(condition123.length()>0){
			condition123 += "and `create_date` is not null";
		}else{
			condition123 += "`create_date` is not null";
		}
		return this;
	}
	public ImgerInfoCriteria orCreateDateIsNotNull(){
		if(condition123.length()>0){
			condition123 += "or `create_date` is not null";
		}else{
			condition123 += "`create_date` is not null";
		}
		return this;
	}
	
	public ImgerInfoCriteria andCreateDateIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "and `create_date` in("+value+") ";
			}else{
				condition123 += "`create_date` in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orCreateDateIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "or `create_date` in("+value+") ";
			}else{
				condition123 += "`create_date` in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andCreateDateNotIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "and `create_date` not in("+value+") ";
			}else{
				condition123 += "`create_date` not in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orCreateDateNotIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "or `create_date` not in("+value+") ";
			}else{
				condition123 += "`create_date` not in("+value+") ";
			}
		}
		return this;
	}

	public ImgerInfoCriteria andStateEquals(String state){
		if(state!=null&&state.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `state`='"+state+"' ";
			}else{
				condition123 += "`state`='"+state+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orStateEquals(String state){
		if(state!=null&&state.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `state`='"+state+"' ";
			}else{
				condition123 += "`state`='"+state+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andStateNotEquals(String state){
		if(state!=null&&state.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `state`!='"+state+"' ";
			}else{
				condition123 += "`state`!='"+state+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orStateNotEquals(String state){
		if(state!=null&&state.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `state`!='"+state+"' ";
			}else{
				condition123 += "`state`!='"+state+"' ";
			}
		}
		return this;
	}
	/**
	 * 大于
	 * @param 
	 * @return
	 */
	public ImgerInfoCriteria andStateGreaterThan(String state){
		if(state!=null&&state.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `state`>'"+state+"' ";
			}else{
				condition123 += "`state`>'"+state+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orStateGreaterThan(String state){
		if(state!=null&&state.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `state`>'"+state+"' ";
			}else{
				condition123 += "`state`>'"+state+"' ";
			}
		}
		return this;
	}
	
	
	public ImgerInfoCriteria andStateLessThan(String state){
		if(state!=null&&state.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `state`<'"+state+"' ";
			}else{
				condition123 += "`state`<'"+state+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orStateLessThan(String state){
		if(state!=null&&state.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `state`<'"+state+"' ";
			}else{
				condition123 += "`state`<'"+state+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andStateGreadterThanAndEquals(String state){
		if(state!=null&&state.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `state`>='"+state+"' ";
			}else{
				condition123 += "`state`>='"+state+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orStateGreadterThanAndEquals(String state){
		if(state!=null&&state.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `state`>='"+state+"' ";
			}else{
				condition123 += "`state`>='"+state+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andStateLessThanAndEquals(String state){
		if(state!=null&&state.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "and `state`<='"+state+"' ";
			}else{
				condition123 += "`state`<='"+state+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orStateLessThanAndEquals(String state){
		if(state!=null&&state.trim().length()>0){
			if(condition123.length()>0){
				condition123 += "or `state`<='"+state+"' ";
			}else{
				condition123 += "`state`<='"+state+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andStateLike(String state){
		if(state!=null&&state.trim().length()>0&&!("%".equals(state.trim()))&&!("%%".equals(state.trim()))){
			if(condition123.length()>0){
				condition123 += "and `state` like '"+state+"' ";
			}else{
				condition123 += "`state` like '"+state+"' ";
			}
		}
		return this;
	}
	public ImgerInfoCriteria orStateLike(String state){
		if(state!=null&&state.trim().length()>0&&!("%".equals(state.trim()))&&!("%%".equals(state.trim()))){
			if(condition123.length()>0){
				condition123 += "or `state` like '"+state+"' ";
			}else{
				condition123 += "`state` like '"+state+"' ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andStateIsNull(){
			if(condition123.length()>0){
				condition123 += "and `state` is null";
			}else{
				condition123 += "`state` is null";
			}
		return this;
	}
	public ImgerInfoCriteria orStateIsNull(){
		if(condition123.length()>0){
			condition123 += "or `state` is null";
		}else{
			condition123 += "`state` is null";
		}
		return this;
	}
	public ImgerInfoCriteria andStateIsNotNull(){
		if(condition123.length()>0){
			condition123 += "and `state` is not null";
		}else{
			condition123 += "`state` is not null";
		}
		return this;
	}
	public ImgerInfoCriteria orStateIsNotNull(){
		if(condition123.length()>0){
			condition123 += "or `state` is not null";
		}else{
			condition123 += "`state` is not null";
		}
		return this;
	}
	
	public ImgerInfoCriteria andStateIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "and `state` in("+value+") ";
			}else{
				condition123 += "`state` in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orStateIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "or `state` in("+value+") ";
			}else{
				condition123 += "`state` in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria andStateNotIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "and `state` not in("+value+") ";
			}else{
				condition123 += "`state` not in("+value+") ";
			}
		}
		return this;
	}
	
	public ImgerInfoCriteria orStateNotIn(String value){
		if(value!=null&&value.trim().length()>0){
			if(value.contains(",")){
				String []values = value.split(",");
				String newValue = "";
				for(String s:values){
					newValue += "'"+s+"',";
				}
				newValue = newValue.substring(0, newValue.length()-1);
				value = newValue;
			}else{
				value = "'"+value+"'";
			}
			if(condition123.length()>0){
				condition123 += "or `state` not in("+value+") ";
			}else{
				condition123 += "`state` not in("+value+") ";
			}
		}
		return this;
	}

	private void initImgerInfo(ImgerInfo imgerInfo) {
		super.setId(imgerInfo.getId());
		super.setName(imgerInfo.getName());
		super.setLink(imgerInfo.getLink());
		super.setImgSrc(imgerInfo.getImgSrc());
		super.setUseType(imgerInfo.getUseType());
		super.setUseId(imgerInfo.getUseId());
		super.setCreateDate(imgerInfo.getCreateDate());
		super.setState(imgerInfo.getState());

	}

}